package com.redis.thymeleafController;


import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * thymeleaf 页面控制类
 */
@Controller
@RequestMapping(value = {"th"})
public class ThymeleafController {


    @RequestMapping("/index")
    public String index(ModelMap map){
        map.addAttribute("name","haozz");
        return "thymeleaf/index";
    }

}
